import request from '@/utils/request'

// 查询试题列表
export function listQuestion(query) {
  return request({
    url: '/system/question/list',
    method: 'get',
    params: query
  })
}

// 查询试题详细
export function getQuestion(id,query) {
  return request({
    url: '/system/question/' + id,
    method: 'get',
    params: query
  })
}

// 新增试题
export function toAddQuestion(data) {
  return request({
    url: '/system/question/add',
    method: 'post',
    data: data
  })
}

// 修改试题
export function toUpdateQuestion(data) {
  return request({
    url: '/system/question/edit',
    method: 'post',
    data: data
  })
}

// 删除试题
export function delQuestion(id) {
  return request({
    url: '/system/question/' + id,
    method: 'delete'
  })
}


// 查询试题列表
export function getBQuestionGroupName() {
  return request({
    url: '/system/question/getBQuestionGroupName',
    method: 'get'
  })
}
